package com.hzvictory.hotel_system.controller;

import com.hzvictory.hotel_system.common.properties.AliOssProperties;
import com.hzvictory.hotel_system.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * 功能
 * 作者：何征
 * 日期：2025/8/11 16:17
 */
@RestController
@RequestMapping("/system")
public class uploadController {
    @Autowired
    private FileService fileService;
    @PostMapping("/upload")
    public String upload(@RequestParam("file") MultipartFile file) {
        // 处理上传逻辑
        return fileService.uploadFile(file);
    }
}
